const btn = document.querySelector('button')
btn.addEventListener('click', () => {
  let fileel = document.querySelector('input[type=file]')
  let file = fileel.files[0]
  let fu = new FileUploader(file, {
    onEnd() {
      location.href = './success.html'
    },
  })
  fu.start()
})
